package com.taxi.driver.module.order.address;

import android.content.Context;

import com.qianxx.adapter.SuperAdapter;
import com.qianxx.adapter.internal.SuperViewHolder;
import com.taxi.driver.R;
import com.taxi.driver.module.vo.AddressVO;

import java.util.ArrayList;

/**
 * 功能描述：
 */
public class ChangeAddrAdapter extends SuperAdapter<AddressVO> {

    public ChangeAddrAdapter(Context context, int layoutId) {
        super(context, new ArrayList<>(), layoutId);
    }

    @Override
    public void onBind(SuperViewHolder holder, int viewType, int position, AddressVO item) {
        holder.setText(R.id.tv_addr, item.getAddress())
                .setText(R.id.tv_detail, item.getAddressDetail());
    }

}
